#include "STC89C5xRC.H"
#include "intrins.h"

#define u8 unsigned char
#define u16 unsigned int
void delayMs(u16 ms);


void main()
{
	
//	0xA5 //10100101  
//	0x2D //00101101
	u8 a;
	a = 0xfe;
	while(1)
	{
		P1 = a;
		a = _cror_(a,2); 
		delayMs(500);
	}
}

void delayMs(u16 ms)
{
	u16 a,b;
	for(a = ms;a > 0;a--)
		for(b = 114;b > 0;b--);
}